// Vuex module
export default {
	// Vuex 全局状态
	state: {
		carOrderInfo:{
			notes:'',
			flight_num:'',
			usage_time:'',
			star_site:'',
			startLocation:'',
			people_num:1,
			end_site:'',
		},
		carType:{},
		latAndLon:{}
	},
	mutations: {
		// savaCarInfo(){
		SAVE_CAR_INFO(state, data){
			console.log('礼宾车订单信息',data);
			state.carOrderInfo = data
		},
		CAR_TYPE(state, data){
			console.log('礼宾车订单车信息',data);
			state.carType = data
		},
		SAVE_LAT_LON(state, data){
			console.log('礼宾车订单车位置经纬度',data);
			state.latAndLon = {
				lat:data.latitude,
				lon:data.longitude,
				info:data
			}
		},
	}
};
